import Vue from 'vue'
import App from './App.vue'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import router from './router'
import store from './store'
import axios from "axios";
import { Message } from "element-ui";
import SvgIcon from '@/components/SvgIcon'// svg组件
// 分页组件
import Pagination from '@/components/Pagination'

axios.defaults.baseURL = "http://127.0.0.1:8008/api";

// 全局组件挂载
Vue.component('Pagination', Pagination)
Vue.config.productionTip = false
Vue.use(ElementUI)
Vue.prototype.$http = axios;
Vue.prototype.$message = Message;
Vue.component("svg-icon", SvgIcon);
new Vue({
  store,
  router,
  render: h => h(App)
}).$mount('#app')
